<?php
$this->keywords .= ',商品搜索';
$this->pageTitle = '商品搜索';
$this->breadcrumbs=array(
	'所有商品类目' => array('/cate'),
	'商品列表'
);
?>

	<div class="goods_header end_header"><h3>请选择商品查询条件</h3></div>
	<div class="goods">
		<div class="searchCate">
			<a href="<?php echo $this->createUrl('cate/index');?>" onfocus="this.blur();"><img src="<?php echo Yii::app()->baseUrl;?>/images/searchCate.gif" /></a>
		</div>
		<div class="searchKeyword">
			<input type="text" id="kw" autocomplete="off" x-webkit-speech /><a id="searchButton" onfocus="this.blur();" href="list/">按关键字搜索</a>
			<div class="clear"></div>
			<p style="margin:5px 0 0 50px;">热门搜索：<?php $this->widget('ext.SortKeywords');?></p>
		</div>
		<div class="clear"></div>
	</div>

<?php Yii::app()->clientScript->registerScript('searchUrl',"
	$('#searchButton').click(function (){
		var url = $(this).attr('href');
		var kw = $('#kw').val();
		kw = $.trim(kw);
		if(kw == ''){
			return false;
		}else{
			$(this).attr('href',url+'keyword/'+encodeURI(kw)+'.html');
		}
	});
	$('.logoright').hide();
");?>